<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "socket_log".
 *
 * @property integer $id
 * @property string $order_corp_name
 * @property integer $reservation_id
 * @property string $template_id
 * @property string $body
 * @property string $jsonbody
 * @property string $state
 * @property string $type
 * @property string $content
 * @property integer $is_send
 * @property integer $create_time
 */
class SocketLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'socket_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['reservation_id', 'template_id', 'is_send', 'create_time'], 'integer'],
            [['body', 'jsonbody', 'content'], 'string'],
            [['order_corp_name'], 'string', 'max' => 30],
            [['state', 'type'], 'string', 'max' => 10],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'order_corp_name' => 'Order Corp Name',
            'reservation_id' => 'Reservation ID',
            'template_id' => 'Template ID',
            'body' => 'Body',
            'jsonbody' => 'Jsonbody',
            'state' => 'State',
            'type' => 'Type',
            'content' => 'Content',
            'is_send' => 'Is Send',
            'create_time' => 'Create Time',
        ];
    }
}
